<?php
class HelpIndexAction extends FrontendAction
{
	public function __construct()
	{
		parent::__construct();
		$this->responseType = 'tpl';
		$this->layout = 'index';
	}

	public function execute()
	{
		$id	= $this->context->get('id');
		if(is_numeric($id) && $id)
		{
			$helpService	= new HelpService();
			$info			= $helpService->get($id);
			$this->data['info']	= $info;
			
			$this->data['seo']['title']	= $info['title'].'-'.'帮助中心';
		}
	}
}
